import { threeViewStore } from "../../store/models/data";
import pinia from '../../store/index';
const store = threeViewStore(pinia);
export default function rotate(){
    /**模型旋转 */
    // window.camera.rotateY(0.05);
    window.meshObj.rotateY(0.3);
    render();
}
function render() {
    window.renderer.render(window.threeScene, window.camera); //执行渲染操作
    requestAnimationFrame(render); //请求再次执行渲染函数render，渲染下一帧，window的方法大约每16.7ms调用一次requestAnimationFrame()方法指定的函数，实现渲染器渲染方法render()的周期性调用
}